package co.yixiang.huiMin.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * <p>
 * 用户提现
 * </p>
 *
 * @author Author
 * @since 2020-06-30
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yx_user_withdraw")
public class YxUserWithdraw implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 提现id
     */
    @Id
    @TableId(value = "withdraw_id", type = IdType.AUTO)
    @ApiModelProperty("主键id")
    @Column(name = "withdraw_id")
    private Integer withdrawId;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 支付宝账号
     */
    @Column(name = "withdraw_card")
    private String withdrawCard;

    /**
     * 支付宝名称
     */
    @Column(name = "withdraw_name")
    private String withdrawName;

    /**
     * 提现金额
     */
    @Column(name = "withdraw_price")
    private BigDecimal withdrawPrice;

    /**
     * 审核状态(1.未审核2.审核通过3.审核不通过)
     */
    @Column(name = "withdraw_type")
    private Integer withdrawType;

    /**
     * 不通过原因
     */
   @ApiModelProperty("不通过原因")
   @Column(name = "withdraw_cause")
    private String withdrawCause;

    /**
     * 是否删除(1.是2.否)
     */
    @Column(name = "withdraw_del")
    private Integer withdrawDel;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "withdraw_create_time")
    private LocalDateTime withdrawCreateTime;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "withdraw_time")
    private LocalDateTime withdrawTime;

    /**
     * 昵称
     */
    @TableField(exist = false)
    @Transient
    private String nickname;


    /**
     * 昵称
     */
    @TableField(exist = false)
    @Transient
    private String avatar;

}
